<?php
$this->lang->load('admin_ad', $this->session->admin_language);
$this->load->view('admin/layout/head', array('title'=> 'video设置'), FALSE);
?>

<div id="container">
<div class="preview">
    <video src="<?= $video ?>" autoplay></video>
</div>
<form method="post" class="form-inline deal-from container-fluid no-padding" id="ad-form"               enctype="multipart/form-data">
	<div class="mt-20">
		<label for="">上传video</label>
		<div class="form-group">
            <input type="file" name="video">
		</div>
	</div>

	<div style="padding-left:110px" class="mt-20">
		<button class="btn btn-primary">保存</button>
      	<a href="/admin/sys" class="btn btn-default cancel"><?php echo $this->lang->line('cancel') ?></a>
    </div>


</form>
</div>


<?php
$js_array = array(
	'/assets/plupload/plupload.full.min.js'
	);
$this->load->view('admin/layout/footer',array('js'=>$js_array));
?>

<script type="text/javascript">
$(function(){
    uploadImg('up-btn',function(img){
        $('#up-container').html('<img src="'+img+'" style="max-width: 600px; max-height: 100px"/>');
        $('#ad-image').val(img);
    });
})
</script>
